﻿using SD.Infrastructure.DTOBase;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.FoundationContext
{
    /// <summary>
    /// 工厂模型数据传输对象
    /// </summary>
    [DataContract]
    public class FacilityInfo : BaseDTO
    {
        #region 工厂模型层次 —— FacilityLevel FacilityLevel
        /// <summary>
        /// 工厂模型层次
        /// </summary>
        [DataMember]
        public FacilityLevel FacilityLevel { get; set; }
        #endregion

        #region 工厂模型类型 —— FacilityType? FacilityType
        /// <summary>
        /// 工厂模型类型
        /// </summary>
        [DataMember]
        public FacilityType? FacilityType { get; set; }
        #endregion

        #region 上级节点Id —— Guid? ParentNodeId
        /// <summary>
        /// 上级节点Id
        /// </summary>
        [DataMember]
        public Guid? ParentNodeId { get; set; }
        #endregion

        #region 是否是根级节点 —— bool IsRoot
        /// <summary>
        /// 是否是根级节点
        /// </summary>
        [DataMember]
        public bool IsRoot { get; set; }
        #endregion

        #region 是否是叶子级节点 —— bool IsLeaf
        /// <summary>
        /// 是否是叶子级节点
        /// </summary>
        [DataMember]
        public bool IsLeaf { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion
    }
}
